package com.mall.ware.service;

import com.mall.common.page.PageData;
import com.mall.common.service.CrudService;
import com.mall.ware.dto.PurchaseDTO;
import com.mall.ware.entity.PurchaseEntity;
import com.mall.ware.vo.MergeVo;
import com.mall.ware.vo.PurchaseFinishVo;

import java.util.Map;

/**
 * 采购信息
 *
 * @author xjc xjc@163.com
 * @since 1.0.0 2022-07-17
 */
public interface PurchaseService extends CrudService<PurchaseEntity, PurchaseDTO> {

    PageData<PurchaseDTO> queryPageByCondition(Map<String, Object> params);

    PageData<PurchaseDTO> queryNuReceiveByCondition(Map<String, Object> params);

    void mergePurchase(MergeVo mergeVo);

    void updatePurchase(PurchaseDTO dto);

    void receivePurchase(Long[] ids);

    void donePurchase(PurchaseFinishVo purchaseFinishVo);
}